Have the domains deleted if they are managed by xend and the tests are
run with '-md' as parameter to runtest.sh.
Signed-off-by: Stefan Berger <stefanb@us.ibm.com>
domain_ul.start(noConsole=True)
FAIL("Could start unlabeled domain.")
except DomainError, e:
- pass
+ domain_ul.destroy() # delete if xend-managed domain
config = {"access_control":"policy=%s,label=%s" % (testpolicy,testlabel1)}
domain_red.start(noConsole=True)
FAIL("Could start 'red' domain.")
except DomainError, e:
- pass
+ domain_red.destroy() # delete if xend-managed domain
# Terminate GREEN domain
domain_green.destroy()